package com.sohu.tv.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sohu.tv.dao.AppDao;
import com.sohu.tv.entity.App;
import com.sohu.tv.service.AppService;
@Service
public class AppServiceImpl implements AppService {

	@Resource
	AppDao appDao;
	
	@Override
	public App getById(String appId) {
		return appDao.getById(appId);
	}

	@Override
	@Transactional
	public int addApp(String appId, String appSecret, String appName) {
		return appDao.addApp(appId, appSecret, appName);
	}

}
